package com.example.demo.demos.web.service;

import com.example.demo.demos.web.entity.Pinpai;
import com.example.demo.demos.web.mapper.PinpaiMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PinpaiService {
    @Autowired
    private PinpaiMapper pinpaiMapper;
    public  int addpinpai(Pinpai pinpai){
      return pinpaiMapper.addpinpai(pinpai);
    }
    public  int editpinpai(Pinpai pinpai){
        return pinpaiMapper.updatepinpia(pinpai);
    }
}
